package com.lmabbe.core.common.query;

import com.lmabbe.common.global.enums.WhereTypeEnum;
import com.lmabbe.common.global.query.PageQuery;
import com.lmabbe.common.global.query.WhereType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限表VO
 *
 * @author lmabbe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "权限表")
public class SysRoleQuery extends PageQuery {

    /**
     * 名称
     */
    @WhereType(type = WhereTypeEnum.LIKE)
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 数据权限 {ALL:1,全部;THIS_LEVEL:2,本级;THIS_LEVEL_CHILDREN:3,本级以及子级;CUSTOMIZE:4,自定义;SELF:5,个人;}
     */
    @WhereType(type = WhereTypeEnum.EQ)
    @ApiModelProperty(value = "数据权限 {ALL:1,全部;THIS_LEVEL:2,本级;THIS_LEVEL_CHILDREN:3,本级以及子级;CUSTOMIZE:4,自定义;SELF:5,个人;} ")
    private String dataScope;

}